<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{padding: 0; margin: 0;}
        .box{
            height: 400px;
            background-color: red;
        }
        @media screen and (max-width: 600px) {
            .box {
                background-color: blue;
            }
        }
        @media screen and (min-width: 601px) and (max-width: 1200px) {
            .box {
                background-color: green;
            }
            
        }
    </style>
</head>
<body>
    <div >
        媒体查询
    </div>
    <ul>
        <li>列表一</li>
        <li>列表二</li>
        <li>列表三</li>
    </ul>
    <div class="box"></div>
</body>
</html>